// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

const db = cloud.database()
// 云函数入口函数
exports.main = async (event, context) => {
  return await db.collection('jihua').doc(event.dataId).update({
    data: {
      use: event.openid,
      whenday2:event.whenday2,
      username:event.username,
      userimg:event.userimg,
      flag:false,
      hezuo:"cloud://gaogaolo-qy3zl.6761-gaogaolo-qy3zl-1304238148/svg图标库/多人.svg",
      userjudge:event.userjudge,
      realityday: event.realityday
    }
  })

}